<div id="frmcreatetable_divMain">

<table class="tblInfo" id="frmcreatetable_tblInfo" width="100%">
<tr>
<td class="width25"  valign="top">
<div class="divLeft">
<table id="frmcreatetable_info" class="info">
<tr >
<td class="width35"  class="lblRequired">Tên Bảng</td>
<td ><input  type="text"  id="frmcreatetable_txtTableName" class="txtRequired"/></td>
</tr>
<tr >
<td>Script Tạo Bảng</td>
<td ><textarea id="frmcreatetable_txtTableScript" name="description" cols="50" rows="20" class="width99" ></textarea></td>
</tr>

<!--<tr >
<td class="width35 lblRequired">Loại dịch vụ</td>
<td id="frmcreatetable_serviceType"></td>
</tr>-->

 <tr >
<td colspan="2">        <div class="divactionbuton">
<input type="hidden" id='frmcreatetable_hdEdit' value="0"/>
<input type="hidden" id='frmcreatetable_hdId' value=""/>
<button class="save validate btnsave" id="frmcreatetable_submit" type="button"> Thêm Mới </button> 
<button  type="reset" id="clear" class="clear"> Nhập Lại </button> 
        </div> </td>
</tr>

</table>

        </div></td>
<td class="clsmiddle"></td>
<td><div id="frmcreatetable" class="divGrid"></div></td>
</tr>
</table>
</div>
<script language="javascript">
$(document).ready(function () {
    initForm('frmcreatetalbe_tbl');
    $('#frmcreatetable_chk').change(function(){
       if($(this).attr('checked')){
         $('#frmcreatetable_trcreate').css('display','');  
         $('#frmcreatetable_trcreatebtn').css('display','');  
       }else{
         $('#frmcreatetable_trcreate').css('display','none');  
         $('#frmcreatetable_trcreatebtn').css('display','none');  
       } 
    }) ;
});
function frmcreatetable_create(){
    var from = $.trim($('#frmcreatetable_numfrom').val());
    var to = $.trim($('#frmcreatetable_numto').val());
   if(from==''||to==''){
       alert('Vui lòng nhập bảng từ đến');
       return false;
   } 
   changeWaiting(0);
     xajax_frmcreatetalbe_create(from,to);  
}
function frmcreatetable_drop(){
      var from = $.trim($('#frmcreatetable_numfrom').val());
      var to = $.trim($('#frmcreatetable_numto').val());
       if(from==''||to==''){
           alert('Vui lòng nhập bảng từ đến');
           return false;
       } 
       changeWaiting(0);  
       xajax_frmcreatetalbe_drop(from,to);  
}
 xajax_frmcreatetable_loadGrid();
 //xajax_frmcreatetable_initPage();

</script>